package com.xxx.mapper;

import com.xxx.pojo.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    @Select("select * from users where username = #{username};")
    @ResultMap("userResultMap")
    Users selectByUsername(String username);

    @Insert("insert into users values (#{id},#{username},#{password},#{sex},#{phone},#{createTime},#{status})")
    int insertUser(Users user);
}
